<?php
/* @var $this TbauctionitemController */
/* @var $model Tbauctionitem */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tbauctionitem-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'cahiID'); ?>
		<?php echo $form->textField($model,'cahiID',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'cahiID'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nameOfEstate'); ?>
		<?php echo $form->textField($model,'nameOfEstate',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'nameOfEstate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'gpsCoordinates'); ?>
		<?php echo $form->textField($model,'gpsCoordinates',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'gpsCoordinates'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dateOfAuction'); ?>
		<?php  $form->widget('zii.widgets.jui.CJuiDatePicker',array(
		'model'=> $model,
	'attribute'=>'dateOfAuction',
    'flat'=>true,//remove to hide the datepicker
    'options'=>array(
        'dateFormat' => 'yy-mm-dd',
        'showAnim'=>'slide',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
        'changeMonth'=>true,
        'changeYear'=>true,
        'yearRange'=>'2000:2099',
        'minDate' => '2015-01-01',      // minimum date
        'maxDate' => '2099-12-31',      // maximum date
		'showButtonPanel' => 'true',
    ),
    'htmlOptions'=>array(
        'style'=>''
    ),
))?>
        
		<?php echo $form->error($model,'dateOfAuction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'timeOfAuction'); ?>
		<?php echo $form->textField($model, 'timeOfAuction',array("class"=>"timepicker")); ?>
		<?php echo $form->error($model,'timeOfAuction'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'typeOfDeal'); ?>
		<?php echo $form->textField($model,'typeOfDeal',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'typeOfDeal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bondHolder'); ?>
		<?php echo $form->textField($model,'bondHolder',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'bondHolder'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'propertyDescription'); ?>
		<?php echo $form->textArea($model,'propertyDescription',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'propertyDescription'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'propertySize'); ?>
		<?php echo $form->textField($model,'propertySize',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'propertySize'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'liquidator'); ?>
		<?php echo $form->textField($model,'liquidator',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'liquidator'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'contactPerson'); ?>
		<?php echo $form->textField($model,'contactPerson',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'contactPerson'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mastersRefNo'); ?>
		<?php echo $form->textField($model,'mastersRefNo',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'mastersRefNo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'occupantName'); ?>
		<?php echo $form->textField($model,'occupantName',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'occupantName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'expenses'); ?>
		<?php echo $form->textField($model,'expenses',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'expenses'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'valuation'); ?>
		<?php echo $form->textField($model,'valuation',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'valuation'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'arrearRatesAndTaxes'); ?>
		<?php echo $form->textField($model,'arrearRatesAndTaxes',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'arrearRatesAndTaxes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'monthlyRatesAndTaxes'); ?>
		<?php echo $form->textField($model,'monthlyRatesAndTaxes',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'monthlyRatesAndTaxes'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'arrearLevies'); ?>
		<?php echo $form->textField($model,'arrearLevies',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'arrearLevies'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'monthlyLevies'); ?>
		<?php echo $form->textField($model,'monthlyLevies',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'monthlyLevies'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'auctioneer'); ?>
		<?php echo $form->textField($model,'auctioneer',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'auctioneer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dateTimeCreated'); ?>
		<?php echo $form->textField($model,'dateTimeCreated'); ?>
		<?php echo $form->error($model,'dateTimeCreated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'createdUser'); ?>
		<?php echo $form->textField($model,'createdUser'); ?>
		<?php echo $form->error($model,'createdUser'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dateTimeModified'); ?>
		<?php echo $form->textField($model,'dateTimeModified'); ?>
		<?php echo $form->error($model,'dateTimeModified'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'modifiedUser'); ?>
		<?php echo $form->textField($model,'modifiedUser'); ?>
		<?php echo $form->error($model,'modifiedUser'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'startingBid'); ?>
		<?php echo $form->textField($model,'startingBid',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'startingBid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'active'); ?>
		<?php echo $form->textField($model,'active'); ?>
		<?php echo $form->error($model,'active'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->